import axios from '@/http/index';
/* 监控事件单-->列表和详情 */
export function eventDeail(option: string) {
  return axios({
    url: '/monitor/eventCount/eventDeail',
    method: 'post',
    data: option
  });
}
/* 统一监控跳转监控事件单详情页面接口 */
export function eventNoDeail(option: string) {
  return axios({
    url: '/monitor/eventCount/eventNoDeail',
    method: 'post',
    data: option
  });
}
/* 按等级/中心列表 */
export function eventCountTypeDeail(option: string) {
  return axios({
    url: '/monitor/eventCount/eventCountTypeDeail',
    method: 'post',
    data: option
  });
}
// /* 监控事件单导出获取文件名 */
// export function Countexport(option: string) {
//   return axios({
//     url: '/monitor/eventCount/export',
//     method: 'post',
//     data: option
//   });
// }
/* 监控事件单导出-更新超时、接手超时 */
export function Countexport(option: string) {
  return axios({
    url: '/monitor/eventCount/exportTask',
    method: 'post',
    data: option
  });
}
/* 监控事件单导出-分中心、等级 */
export function exportType(option: string) {
  return axios({
    url: '/monitor/eventCount/exportType',
    method: 'post',
    data: option
  });
}

/* 导出文件 */
export function download(option: string) {
  return axios({
    url: '/monitor/count/download',
    method: 'get',
    params: option,
    responseType: 'blob'
  });
}
/* 流程记录 */
export function pubflowlist(option: string) {
  return axios({
    url: '/monitor/count/pubflowlist',
    method: 'post',
    data: option
  });
}
